import xml.etree.ElementTree as ET
import pandas as pd
import sys
import glob
import os
import xml.dom.minidom
from collections import Counter


def getFileNumberForPath(path, fileType):
    """
    :param path: 文件路径
    :param fileType: 文件名后缀
    :return: 对应文件绝对路径的列表
    通过文件路径和文件名后缀名返回对应的文件名列表
    """
    resultList = []
    fileList = glob.glob(path + fileType)
    for file in fileList:
        resultList.append(file.split("\\")[-1])
    # return glob.glob(path + fileType)
    return resultList


